package com.ty.mybatis.entity;

import java.io.Serializable;

import com.ty.util.StringUtil;
import com.ty.util.TypesUtil;


public class Columns implements Serializable {

	/**
	 * serialVersionUID :
	 */
	private static final long serialVersionUID = 4750259087546367838L;


	private String column;

	private String jdbcType;

	private String property;

	private String javaType;

	private String javaType2;

	public Columns(String column, String type) {
		this.column = column;
		this.jdbcType = TypesUtil.getJdbcType(type);
		this.javaType = TypesUtil.getJavaType(type);
		this.javaType2 = TypesUtil.getJavaType2(type);
		this.property = StringUtil.getProperty(column);
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public String getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(String jdbcType) {
		this.jdbcType = jdbcType;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getJavaType() {
		return javaType;
	}

	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}

	public String getJavaType2() {
		return javaType2;
	}

	public void setJavaType2(String javaType2) {
		this.javaType2 = javaType2;
	}
}
